package com.ychen.goods.service.impl;

import com.ychen.commons.entity.goods.GoodsEntity;
import com.ychen.goods.dao.GoodsDao;
import com.ychen.goods.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsDao goodsDao;

    @Override
    public List<GoodsEntity> getRecommendGoods(Long userId,Map<String, Object> params) {
        // 模拟推荐商品算法
        return goodsDao.getRecommendGoods(userId,params);
    }
}
